package com.sf.fy.uav.order.controller;

import com.sf.fy.uav.common.request.order.OrderExtraRequest;
import com.sf.fy.uav.order.entity.OrderExtra;
import com.sf.fy.uav.order.service.IOrderExtraService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-06-19
 */
@RestController
public class OrderExtraController {

    @Autowired
    private IOrderExtraService iOrderExtraService;

    public void add(OrderExtraRequest orderExtraRequest) {
        iOrderExtraService.add(orderExtraRequest);
    }

    public OrderExtra getByOrderId(String orderId) {
        return iOrderExtraService.getByOrderId(orderId);
    }
}
